package com.ovt.doorbell.payment.service;

import java.util.List;

import com.ovt.doorbell.payment.dao.constant.ResourceType;
import com.ovt.doorbell.payment.dao.vo.PageInfo;
import com.ovt.doorbell.payment.dao.vo.Resource;
import com.ovt.doorbell.payment.service.exception.ServiceException;

public interface ResourceService
{
    public float getPrice(int resId) throws ServiceException;
    
    public void addResource(Resource resource) throws ServiceException;
    
    public void deleteResource(int resId) throws ServiceException;
    
    public void updateResource(Resource resource) throws ServiceException;
    
    public List<Resource> getAllResources(PageInfo page) throws ServiceException;
    
    public Resource getResource(ResourceType type, int size) throws ServiceException;
    
    public Resource getResource(String resourceCode) throws ServiceException;
    
    public List<Resource> getDefaultResource() throws ServiceException;
    
    public boolean isDefaultResource(ResourceType type, int size) throws ServiceException;
    
}
